package com.tiansu.reborn.wanda.modules.executor.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tiansu.reborn.wanda.modules.executor.dao.BillDayDao;
import com.tiansu.reborn.wanda.modules.executor.entity.BillDayEntity;
import com.tiansu.reborn.wanda.modules.executor.service.BillService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class  BillServiceImpl extends ServiceImpl<BillDayDao, BillDayEntity> implements BillService {
    @Override

    public int RepariBill(BillDayEntity entity) {
        log.info("entity:"+entity);
        log.info("id:"+entity.getId()+"开始更新");
        this.baseMapper.updateById(entity);
        log.info("id:"+entity.getId()+"数据更新结束");
        this.baseMapper.updateSumCount(entity.getId());
        log.info("id:"+entity.getId()+"sumcount更新结束");
        this.baseMapper.updatePayCount(entity.getId());
        log.info("id:"+entity.getId()+"paycount更新结束");
        return 1;
    }



}
